package com.caac.core.web.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright Intolong 2004</p>
 * <p>Company: Intolong</p>
 * @author <a href="mailto:intolong@163.com">Intolong</a>
 * @version 1.0
 */

public class BaseForm extends ValidatorForm {
    public final ActionErrors validate(ActionMapping mapping,
                                       HttpServletRequest request) {
        return doValidate(mapping, request);
    }

    public final void reset(ActionMapping mapping, HttpServletRequest request) {
        doReset(mapping, request);
    }

    protected ActionErrors doValidate(ActionMapping mapping,
                                      HttpServletRequest request) {
        return null;
    }

    protected void doReset(ActionMapping actionMapping,
                           HttpServletRequest httpServletRequest) {
    }
}
